package cn.edu.zut.domain;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import org.springframework.stereotype.Component;

import java.io.Serializable;

@Component
@JsonIgnoreProperties(value = {"handler"})
public class ContestRegistry implements Serializable {
    private static final long serialVersionUID = -2424144901187196333L;
    private Integer _id;
    private String ClassAndGrade;
    private String gender;
    private String email;
    private String relName;

    private User user;
    private Contest contest;

    public ContestRegistry() {
    }

    @Override
    public String toString() {
        return "ContestRegistry{" +
                "_id=" + _id +
                ", ClassAndGrade='" + ClassAndGrade + '\'' +
                ", gender='" + gender + '\'' +
                ", email='" + email + '\'' +
                ", relName='" + relName + '\'' +
                ", user=" + user +
                ", contest=" + contest +
                '}';
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Integer get_id() {
        return _id;
    }

    public void set_id(Integer _id) {
        this._id = _id;
    }

    public String getClassAndGrade() {
        return ClassAndGrade;
    }

    public void setClassAndGrade(String classAndGrade) {
        ClassAndGrade = classAndGrade;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getRelName() {
        return relName;
    }

    public void setRelName(String relName) {
        this.relName = relName;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Contest getContest() {
        return contest;
    }

    public void setContest(Contest contest) {
        this.contest = contest;
    }
}
